<!DOCTYPE html>
<html>
<head>
	<title>echarts</title>
	<style type="text/css">
		#main{width: 600px;height: 400px;}
	</style>
	<script type="text/javascript" src="./js/echarts.min.js"></script>
	<script type="text/javascript">
		window.onload=function(){
			var main=document.getElementById("main")
			var myEchart=echarts.init(main)

			var option={
				title:{text:"我的图表"},
				tooltip:{},
				legend:{data:['销量']},
				xAxis:{data:['鞋子','衬衣','领带','西装','裙子']},
				yAxis:{},
				series:[
					{name:"销量",type:"line",data:[20,30,90,60,45]}
				]
			}
			myEchart.setOption(option)
		}
		
	</script>
</head>
<body>
	<div id="main"></div>

</body>
</html>